
const TokenKey = 'Admin-Token'

export function getToken() {
  return localStorage.getItem(TokenKey)
}

export function setToken(token) {
  return localStorage.setItem(TokenKey, token)
}

export function removeToken() {
  return localStorage.removeItem(TokenKey)
}

export function setInfo(obj) {
  return localStorage.setItem('info', obj)
}

export function getInfo() {
  return localStorage.getItem('info')
}

export function removeInfo() {
  return localStorage.removeItem('info')
}
export function setUserId(id) {
  return localStorage.setItem('id', id)
}
export function getUserId() {
  return localStorage.getItem('id')
}
export function removeUserId() {
  return localStorage.removeItem('id')
}
export function setUA(ua) {
  return localStorage.setItem('ua', ua)
}
export function getUA() {
  return localStorage.getItem('ua')
}
export function removeUA() {
  return localStorage.removeItem('ua')
}